home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / beos / PPBeDevKit.ZIP / PLAYERPR.TAR / PlayerPRO / Source / Import-Export / Okta.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-26  |  1.7 KB  |  92 lines

  1. /********************                        ***********************/
  2. //
  3. //    Player PRO 5.0 - DRIVER SOURCE CODE -
  4. //
  5. //    Library Version 5.0
  6. //
  7. //    To use with MAD Library for Mac: Symantec, CodeWarrior and MPW
  8. //
  9. //    Antoine ROSSET
  10. //    16 Tranchees
  11. //    1206 GENEVA
  12. //    SWITZERLAND
  13. //
  14. //    COPYRIGHT ANTOINE ROSSET 1996, 1997, 1998
  15. //
  16. //    Thank you for your interest in PlayerPRO !
  17. //
  18. //    FAX:                (+41 22) 346 11 97
  19. //    PHONE:             (+41 79) 203 74 62
  20. //    Internet:     RossetAntoine@bluewin.ch
  21. //
  22. /********************                        ***********************/
  23.  
  24. #ifndef COMPIL68K 
  25. #pragma options align=mac68k
  26. #endif
  27.  
  28. typedef struct
  29. {
  30.     long    name;
  31.     long    length;
  32. } sectheader;
  33.  
  34. typedef struct
  35. {
  36.       char                name[20];
  37.       long                length;
  38.       unsigned short     repeat;
  39.       unsigned short     replen;
  40.       char                 pad1;
  41.       unsigned char     vol;
  42.       short             pad2;
  43. } OktaInstru;
  44.  
  45. typedef struct
  46. {
  47.     Byte    b1;
  48.     Byte    b2;
  49.     Byte    b3;
  50.     Byte    b4;
  51. } OktaPattern;
  52.  
  53. typedef struct OktaHeader
  54. {
  55.     char        magic[12];
  56.     long        noChannel;
  57.     long        chanFlag;
  58.     long        SampleDirectory;
  59.     long        SampleLen;
  60.     int            splitted[4];
  61.     
  62.     int samp_count;
  63.     int linesize;
  64.     int speed;
  65.       int slen;
  66.       int plen;
  67.  
  68.   Ptr    pbod[128];
  69.   int    pbodlen[128];
  70.        
  71.   unsigned char *patt;
  72.   int pointer;
  73.   int patty;
  74.   int nextpt;
  75.   int actspeed;
  76.  
  77.   int note[8];
  78.   int vol[8];
  79.   int per;
  80.  
  81. } OktaHeader;
  82.  
  83. static short FreqOktaTable[ 40] =
  84.         {
  85.             0x0358,0x0328,0x02FB,0x02D0,0x02A7,0x0281,0x025D,0x023B,0x021B,0x01FD,0x01E0,0x01C5,
  86.             0x01AC,0x0194,0x017D,0x0168,0x0154,0x0141,0x012F,0x011E,0x010E,0x00FE,0x00F0,0x00E3,
  87.             0x00D6,0x00CA,0x00BF,0x00B4,0x00AA,0x00A0,0x0097,0x008F,0x0087,0x007F,0x0078,0x0071
  88.         };
  89. #ifndef COMPIL68K 
  90. #pragma options align=power
  91. #endif
  92.